public class Student {
    public String name;
    public String sex;
    public int age;
    public double score;
    public void print() {
        System.out.println("姓名："+ this.name +" 性别："+ this.sex +" 年龄："+ this.age +" 分数："+this.score);
    }
    //构造方法
    public Student () {
        System.out.println("执行了构造方法");
    }
}
